﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SW.EF.DAL
{
    public interface IUnitOfWork : IDisposable
    {
        IRepository<Role,int> RoleRepository { get; }
        IRepository<User,int> UserRepository { get; }
        IRepository<Permission, int> PermissionRepository { get;}
        IRepository<UserPermissionRelation, int> UserPermissionRelationRepository { get; } 
        int SaveChanges();
    }
}
